package com.liu.mybatisplusdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

@Data
@TableName("goodsinfo")
public class GoodsInfo extends Model<GoodsInfo> {

    @TableId(value = "id",type = IdType.AUTO)
    private int id;
    private String prodaddr;
    private long  proddate;
    private String owner;
    private int prodcount;
    private String prodnumber;
    private long createtime;
    private int state;
    @TableField("goods_id")
    private int goodsId;
}
